<?php
namespace app\agent\controller;
use app\agent\controller\BaseController;

class SysController  extends BaseController {

	public function helps($page = "1") {
		if (!is_numeric($page)) {
			$this->error('参数错误');
		}
		$list = db('sys_helps')->order('add_time desc')->paginate(10);
		$this->assign('list', $list);
		return $this->fetch();
	}
	public function helps_show($id="") {
		if (!is_numeric($id)) {
			$this->error('参数错误');
		}
		$data = db('sys_helps')->find($id);
		$this->assign('data', $data);
		return $this->fetch();
	}
	public function logs($page = "1") {
		if (!is_numeric($page)) {
			$this->error('参数错误');
		}
		$list = db('sys_logs')->order('add_time desc')->paginate(10);
		$this->assign('list', $list);
		return $this->fetch();
	}
	public function logs_show($id="") {
		if (!is_numeric($id)) {
			$this->error('参数错误');
		}
		$data = db('sys_logs')->find($id);
		$this->assign('data', $data);
		return $this->fetch();
	}

	
	
	
	
	
}
